---
title: AI/ML API
sidebarTitle: AI/ML API
---

The **AI/ML API** provider gives unified access to over **300+ AI models**, including **Deepseek**, **Gemini**, **ChatGPT**, and others, via a single standardized interface.

The models run with **enterprise-grade rate limits and uptime**, and are ideal for production use.

You can sign up at [aimlapi.com](https://aimlapi.com/?utm_source=agno&utm_medium=integration&utm_campaign=aimlapi) and view full provider documentation at [docs.aimlapi.com](https://docs.aimlapi.com/?utm_source=agno&utm_medium=github&utm_campaign=integration).

## Parameters

| Parameter    | Type               | Default                                        | Description                                                           |
| ------------ | ------------------ | ---------------------------------------------- | --------------------------------------------------------------------- |
| `id`         | `str`              | `"gpt-4o-mini"`                                | The id of the model to use                                            |
| `name`       | `str`              | `"AIMLAPI"`                                    | The name of the model                                                 |
| `provider`   | `str`              | `"AIMLAPI"`                                    | The provider of the model                                             |
| `api_key`    | `Optional[str]`    | `None`                                         | The API key for AI/ML API (defaults to AIMLAPI_API_KEY env var)      |
| `base_url`   | `str`              | `"https://api.aimlapi.com/v1"`                 | The base URL for the AI/ML API                                        |
| `max_tokens` | `int`              | `4096`                                         | Maximum number of tokens to generate                                  |

AIMLAPI extends the OpenAI-compatible interface and supports most parameters from OpenAI.
